﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>

<!DOCTYPE>
<head>
    <meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta http-equiv="Cache-Control" content="no-siteapp" />
    
    <title>应用列表</title>
	
    <!-- 静态css、js资源 -->
    <%@ include file="/WEB-INF/view/common/common.jsp"%>
    <script type="text/javascript" src="${_cdnStaticResourcesPath}/resources/js/sys/app/app.js"></script>
    
    <style type="text/css">
        .float_left_l {
            float : left;
            display: inline;
            padding-top: 10px;
		}
		.float_left_i {
            float : left;
            display: inline;
            margin-left: 20px;
        }
        .float_left_r{
            padding-top: 10px;
            margin-left: 30px;
            float: left;
        }
        
        /*当查询数据为空的时候，让提示信息居中显示，覆盖yui默认的td左对齐样式*/
        .table td{
		    text-align: center;
		}
    </style>
</head>
<body>
	<nav class="breadcrumb">
        <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 应用管理 <span class="c-gray en">&gt;</span> 应用列表  
        <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新选项卡" ><i class="Hui-iconfont">&#xe68f;</i></a> 
        <!-- <a class="btn btn-danger radius r" style="line-height:1.6em;margin-top:3px;margin-right: 10px;" href="javascript:removeIframe();" title="关闭选项卡" ><i class="Hui-iconfont">&#xe6a6;</i></a> -->
	</nav>
	<div class="page-container">
	    <div class="text-c" style="text-align: right;">
	        <span>应用名称：</span>
            <input type="text" name="name" id="name" placeholder="" style="width:120px" class="input-text" data-toggle="tooltip" data-placement="top" title="支持模糊查询哦">
	        <button name="searchBtn" id="searchBtn" style="margin-left: 20px;" class="btn btn-success radius" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
	    </div>
	    <div class="cl pd-5 bg-1 bk-gray mt-20">
	       <span class="l">
	           <a href="javascript:;" data-toggle="tooltip" data-placement="top" title="进入系统预览的朋友，请不要恶意删除数据" onclick="batchDeleteApp()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> 
	           <a class="btn btn-primary radius" data-title="添加应用" onClick="appAdd('添加应用','${ctx}/app/toAddView','','','510')" href="javascript:;"><i class="Hui-iconfont">&#xe600;</i> 添加应用</a>
	       </span>
        </div>
	    <div class="mt-20">
	        <table id="appListTable" class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
	            <thead>
	                <tr class="text-c">
	                    <th width="80"><input type="checkbox" id="selectAll" value="" /></th>
	                    <th>名称</th>
	                    <th>编码</th>
	                    <th>排序</th>
	                    <th>启用状态</th>
	                    <th>创建时间</th>
	                    <th>更新时间</th>
	                    <th>操作</th>
	                </tr>
	            </thead>
	            <tbody>
	            </tbody>
	        </table>
	    </div>
	</div>
	
	<input type="hidden" des="获取应用列表url" id="getAppListUrl" value="${ctx}/app/list"/>
    <input type="hidden" des="删除应用url" name="deleteAppUrl" id="deleteAppUrl" value="<c:url value="/app/deleteApp"/>" />
    <input type="hidden" des="批量删除应用url" name="deleteAppsUrl" id="deleteAppsUrl" value="<c:url value="/app/deleteApps"/>" />
    <input type="hidden" des="编辑应用url" name="toEditAppUrl" id="toEditAppUrl" value="<c:url value="/app/toEditView"/>" />
    <shiro:hasPermission name="app:edit">
        <input type="hidden" des="是否拥有应用编辑权限" id="haveAppEditPermission" value="true"/>
    </shiro:hasPermission>
    <shiro:hasPermission name="app:delete">
        <input type="hidden" des="是否拥有应用删除权限" id="haveAppDeletePermission" value="true"/>
    </shiro:hasPermission>
    
    <input type="hidden" des="项目根路径" name="basePathUrl" id="basePathUrl" value="${ctx}" />
    <input type="hidden" des="静态资源服务器地址" name="cdnStaticResourcesPath" id="cdnStaticResourcesPath" value="${_cdnStaticResourcesPath}" />
    
	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript" src="${_cdnStaticResourcesPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script> 
	<script type="text/javascript" src="${_cdnStaticResourcesPath}/resources/lib/datatables/1.10.0/jquery.dataTables.min.js"></script> 
	<script type="text/javascript" src="${_cdnStaticResourcesPath}/resources/lib/laypage/1.2/laypage.js"></script>
</body>
</html>
